package com.homework.config;

import com.homework.model.User;
import org.springframework.context.annotation.*;

/**
* @author HLQ
* @date 2024/9/29 10:42
*/
@Configuration
@Import(ResourceConfig.class)
@ComponentScan("com.homework")
@EnableAspectJAutoProxy
public class SpringConfig {
    @Bean
    @Scope("singleton")
    public User userSingleton() {
        return new User();
    }

    @Bean
    @Scope("prototype")
    public User userPrototype() {
        return new User();
    }
}
